﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddArticalsIframe.aspx.cs"
    Inherits="Admin_AddArticalsIframe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/screen.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
    <script type="text/javascript">
        tinyMCE.init({
            // General options
            mode: "textareas",
            theme: "advanced",
            plugins: "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,visualblocks",

            // Theme options
            theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft,visualblocks",
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_statusbar_location: "bottom",
            theme_advanced_resizing: true,

            // Example content CSS (should be your site CSS)
            content_css: "css/content.css",

            // Drop lists for link/image/media/template dialogs
            template_external_list_url: "lists/template_list.js",
            external_link_list_url: "lists/link_list.js",
            external_image_list_url: "lists/image_list.js",
            media_external_list_url: "lists/media_list.js",

            // Style formats
            style_formats: [
			{ title: 'Bold text', inline: 'b' },
			{ title: 'Red text', inline: 'span', styles: { color: '#ff0000'} },
			{ title: 'Red header', block: 'h1', styles: { color: '#ff0000'} },
			{ title: 'Example 1', inline: 'span', classes: 'example1' },
			{ title: 'Example 2', inline: 'span', classes: 'example2' },
			{ title: 'Table styles' },
			{ title: 'Table row 1', selector: 'tr', classes: 'tablerow1' }
		],

            // Replace values for the template plugin
            template_replace_values: {
                username: "Some User",
                staffid: "991234"
            }
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="ArticlsID" runat="server" /> 
    <asp:HiddenField ID="hfImageFull" runat="server" />
    <asp:HiddenField ID="hfUserID" runat="server" />
    <div id="content-table-inner">
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tbody>
                <tr valign="top">
                    <td>
                        <!-- start id-form -->
                        <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                            <tbody>
                                <tr>
                                    <th valign="top" style="width: 170px;">
                                        Articls Title :
                                    </th>
                                    <td>
                                        <asp:TextBox Height="33" Width="350" ID="txtArticlsTitle" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <%--                                <tr>
                                    <th valign="top">
                                        Articls Small Description :
                                    </th>
                                    <td>
                                        <asp:TextBox Height="33" Width="350" MaxLength="100" ID="txtArticls_SmallDescription"
                                            runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <th valign="top">
                                        Is Features :
                                    </th>
                                    <td>
                                        <asp:DropDownList Height="33" Width="353" ID="ddlIsFeatures" runat="server">
                                            <asp:ListItem Value="0" Text="No"></asp:ListItem>
                                            <asp:ListItem Value="1" Text="Yes"></asp:ListItem>
                                        </asp:DropDownList>
                                        &nbsp;to show in home page slider
                                    </td>
                                    <td align="left">
                                        &nbsp;
                                    </td>
                                </tr>
                                <%--                                <tr>
                                    <th valign="top">
                                        Publisher Name :
                                    </th>
                                    <td>
                                        <asp:TextBox Height="33" Width="350" MaxLength="100" ID="txtPublisherName" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <th valign="top">
                                        Articals Category :
                                    </th>
                                    <td>
                                        <asp:DropDownList Height="33" Width="353" ID="ddlArticalsCategory" runat="server">
                                        </asp:DropDownList>
                                    </td>
                                    <td align="left">
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">
                                        Articls Vedio Code :
                                    </th>
                                    <td>
                                        <asp:TextBox Height="50" Width="600" ID="txtArticlsVedioCode" runat="server"></asp:TextBox>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td style="font-size: 12px; font-style: italic">
                                        Please Enter Youtube URL Like this : <strong><em>http://www.youtube.com/watch?v=jbLY8p19Gu8</em></strong>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <%--                                <tr>
                                    <th valign="top">
                                        Articls Thumb :
                                    </th>
                                    <td>
                                        <asp:FileUpload ID="fuArticlsImage1" runat="server" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <th valign="top">
                                        Articls Image :
                                    </th>
                                    <td>
                                        <asp:FileUpload ID="fuArticlsImage2" runat="server" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">
                                        Articls Full Description :
                                    </th>
                                    <td valign="top">
                                        <%--<textarea id="editor"></textarea>--%>
                                        <textarea runat="server" id="editor" name="elm1" rows="15" cols="80" style="width: 80%">
			                            </textarea>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">
                                        &nbsp;
                                    </th>
                                    <td>
                                        <asp:Button ID="btnSave" Width="150" runat="server" Text="Save" OnClick="btnSave_Click" />
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">
                                        &nbsp;
                                    </th>
                                    <td id="tr_UserMessage" runat="server">
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- end id-form  -->
                    </td>
                </tr>
                <tr>
                    <td>
                        <img src="../img/shared/blank.gif" width="695" height="1" alt="blank">
                    </td>
                    <td>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
    </form>
</body>
</html>
